-
Notifications
You must be signed in to change notification settings - Fork 0
chore(deps): update stefanzweifel/git-auto-commit-action action to v6.0.1 #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
dcdf0c7 to
05fd12c
Compare
05fd12c to
f3246d7
Compare
f3246d7 to
612ea6f
Compare
612ea6f to
d85ff69
Compare
d85ff69 to
8cf92be
Compare
8cf92be to
b8637f4
Compare
b8637f4 to
a41cfde
Compare
| fi | ||
|
|
||
| - name: Commit chart version | ||
| uses: stefanzweifel/git-auto-commit-action@v6 | ||
| uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v6.0.1 | ||
| if: steps.commit_exists.outputs.result == 'false' | ||
| with: | ||
| commit_message: ${{ env.COMMIT_MESSAGE }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The workflow references steps.pr.outputs.base_ref, which does not exist. This will cause the git command to fail and terminate the workflow on every run.
Severity: CRITICAL
Suggested Fix
To fix this, you need to correctly determine the base reference for a push event. One approach is to use github.ref_name to get the current branch and then determine the base branch (e.g., main or master) to compare against. Alternatively, change the workflow trigger from push to pull_request if these branches always have an associated pull request, which would make github.base_ref available.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: .github/workflows/build.yaml#L43-L49
Potential issue: The GitHub workflow is configured to trigger on `push` events for
Renovate and Dependabot branches. It attempts to set the `BASE_REF` environment variable
using `steps.pr.outputs.base_ref`, but no step with `id: pr` is defined. As a result,
`BASE_REF` will be an empty string. This causes the subsequent `git rev-list` command to
be malformed (`git rev-list --pretty=oneline "origin/..HEAD"`), which will always fail.
Because the step is configured to exit on error, the entire workflow will fail,
preventing automated dependency updates from being processed.
Did we get this right? 👍 / 👎 to inform future reviews.
a41cfde to
5a0ac9f
Compare
This PR contains the following updates:
v6→v6.0.1Release Notes
stefanzweifel/git-auto-commit-action (stefanzweifel/git-auto-commit-action)
v6.0.1Compare Source
Fixed
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.